package cn.duckerkj.springbootguide.bean;



import javax.validation.constraints.NotBlank;

import org.joda.time.DateTime;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

@Data
public class TestTwoBean {
	@NotBlank(message="姓名不能为空")
	private String name;
	private String sex;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	private DateTime createTime;
}
